package com.task.common.entity.sys.model.user;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
/**
 * @author Huzz
 * @since 2021-12-07
 */
@Data
@ApiModel(value="管理员注册用户Model", description="")
public class UserRegisterModel {

    @ApiModelProperty(value = "用户id", example = "123")
    private Integer id;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户性别")
    private String sex;

    @ApiModelProperty(value = "出生年月")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date birth;

    @ApiModelProperty(value = "登录用户名", required = true)
    private String username;

    @ApiModelProperty(value = "用户名密码", required = true)
    private String password;

    @ApiModelProperty(value = "用户头像")
    private String headPortrait;

    @ApiModelProperty(value = "用户类型", example = "123")
    private Integer userType;

}
